package com.example.travel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.travel.domain.entity.Comment;
import com.example.travel.domain.response.CommentAndUserResponse;
import com.example.travel.mapper.CommentMapper;
import com.example.travel.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author : LinQingLiang
 * @file : CommentServiceImpl.java
 * @Since : 2023/2/15 18:10
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {

    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<CommentAndUserResponse> findCommentDetail(Integer articleId) {
        return commentMapper.findCommentDetail(articleId);
    }
}
